package com.org.javabody.Annotation;

public class My_annotation_test {


	public static void main(String[] args) throws Exception {
		Class<?> testClass = Class.forName("Annotation.Check_test"); 
		   if (testClass.isAnnotationPresent(Is_empty.class)) {  
	            System.out.println("这是一个注解class文件");  
	            Is_empty is = (Is_empty)testClass.getAnnotation(Is_empty.class);  
	            if (is != null) {  
	                System.out.println("value:" + is.name());  
	            } else {  
	                System.out.println("null");  
	            } 
		   }else {  
	            System.out.println("不存在注解class文件");  
	        }  
	}
}
